package com.demostic.demostic_test.entity;

public class LineInfo {
    int endx;
    int endy;
    public int ex;
    public int ey;
    int startx;
    int starty;
    public int sx;
    public int sy;

    public LineInfo() {
    }

    public LineInfo(int sx2, int sy2, int ex2, int ey2) {
        this.sx = sx2;
        this.sy = sy2;
        this.ex = ex2;
        this.ey = ey2;
    }

    public void set(int sx2, int sy2, int ex2, int ey2) {
        this.sx = sx2;
        this.sy = sy2;
        this.ex = ex2;
        this.ey = ey2;
    }

    public int getStartx() {
        return this.startx;
    }

    public void setStartx(int startx2) {
        this.startx = startx2;
    }

    public int getStarty() {
        return this.starty;
    }

    public void setStarty(int starty2) {
        this.starty = starty2;
    }

    public int getEndx() {
        return this.endx;
    }

    public void setEndx(int endx2) {
        this.endx = endx2;
    }

    public int getEndy() {
        return this.endy;
    }

    public void setEndy(int endy2) {
        this.endy = endy2;
    }

    public boolean equals(Object obj) {
        if (getClass() != obj.getClass()) {
            return false;
        }
        LineInfo line = (LineInfo) obj;
        if (this.sx == line.sx && this.sy == line.sy && this.ex == line.ex && this.ey == line.ey) {
            return true;
        }
        return this.sx == line.ex && this.sy == line.ey && this.ex == line.sx && this.ey == line.sy;
    }
}
